<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>12_Diagram elements placement</title>
		<link type="text/css" rel="stylesheet" href="PLUGINS_ROOT/org.polarsys.capella.doc/html/styles.css"/>
	</head>
	<body>
		<h1 id="Diagram_elements_placement">Diagram elements placement</h1>
		<h2 id="Display_the_Grid">Display the Grid</h2>
		<p>During diagram creation, grid can be visible or not. It 
			<b>facilitates the element placement to the user. </b>
		</p>
		<p>To manage it, some preferences have to be configured in 
			<b>
				<i>Preferences/Sirius/SiriusDiagram/Ruler And Grids</i>
			</b>. 
			<i>Select</i> 
			<b>Show grid for new diagrams</b> 
			<i>and indicate</i> 
			<i>the scale in</i> 
			<b>
				<i>grid spacing</i>
			</b>
		</p>
		<p>
			<img border="0" src="../../Images/Tips55.png"/>
		</p>
		<h2 id="Snap_to_grid">Snap to grid</h2>
		<p>The 
			<i>Snap to grid</i> feature 
			<b>allows</b> 
			<b>editing parts to snap to the grid when editing</b> (during creation, moving or resizing). 
		</p>
		<p>Note: Grid snapping and visibility are two distinct properties, and it is possible to enable one without the other.</p>
		<p>To manage it, some preferences have to be configured in 
			<b>
				<i>Preferences/Sirius/SiriusDiagram/Ruler And Grids</i>
			</b>. 
			<i>Select</i> 
			<b>Snap to grid for new diagrams</b>.
		</p>
		<p>
			<img border="0" src="../../Images/Tips56.png"/>
		</p>
		<p>Moreover, by pressing the 
			<b>
				<i>Alt shortcut key</i>
			</b>, it is possible 
			<b>to temporarily place an element independently of the grid.</b>
		</p>
		<p>At the end of this action, the functionality will return to active automatically. </p>
		<h2 id="Snap_to_shapes">Snap to shapes</h2>
		<p>The 
			<i>Snap to shapes</i> feature 
			<b>allows you to quickly align parts being dragged or resized to other parts in the diagram or that share the same parent</b> (N.B: edit parts inside a compartment can only snap to each other). The snap is effective on top, bottom, right, left and center of the figure. Feedback is shown in the form of a gray line when a part is being attached to another part.
		</p>
		<p>To manage it, some preferences have to be configured in 
			<b>
				<i>Preferences/Sirius/SiriusDiagram/RulerAndGrids</i>
			</b>. 
			<i>Select</i> 
			<b>Snap to shapes for new diagrams</b>.
		</p>
		<p>
			<img border="0" src="../../Images/Tips57.png"/>
		</p>
		<p>Moreover, by pressing the 
			<b>
				<i>F4 shortcut key</i>
			</b>, it is possible to temporarily enable the snap 
			<b>to all shapes currently visible on the diagram.</b>
		</p>
		<p>At the end of this action, the functionality will return to active automatically. </p>
	</body>
</html>